﻿<Window x:Class="HorrorEncodeDesktop.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="Horror Encode Desktop"
        Height="408"
        Width="525"
        ResizeMode="NoResize"
        WindowStartupLocation="CenterScreen"
        SnapsToDevicePixels="True">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="65" />
            <RowDefinition />
        </Grid.RowDefinitions>
        
        <!-- Cabecera -->
        <Grid Grid.Row="0" Background="Black">
            <!-- Título de App -->
            <TextBlock
                Text="HORROR ENCODE" 
                
                HorizontalAlignment="Left"
                VerticalAlignment="Center"
                Margin="16, 0, 0, 0"
                Foreground="White"
                
                FontSize="24"
                FontFamily="Segoe UI Light"
            />
            
            <!-- Pivots -->
            <TextBlock
                Text="ocultar" 
                Name="EncodePivot"
                
                HorizontalAlignment="Right"
                VerticalAlignment="Center"
                Margin="0, 0, 116, 0"
                
                Foreground="White"
                FontSize="19"
                FontFamily="Segoe UI Light"
                
                MouseUp="Pivot_Encode_Click"
            />
            <TextBlock
                Text="recuperar" 
                Name="DecodePivot"
                
                HorizontalAlignment="Right"
                VerticalAlignment="Center"
                Margin="0, 0, 16, 0"
                
                Foreground="DarkGray"
                FontSize="19"
                FontFamily="Segoe UI Light"
                
                MouseUp="Pivot_Decode_Click"
            />
        </Grid>
        
        <!-- Cuerpo -->
        <Grid Grid.Row="1">
            <!-- Pivot de Codificar -->
            <StackPanel Name="EncodeGrid" Margin="16, 0, 16, 0">
                <Label>Mensaje a Ocultar</Label>
                <TextBox
                    Name="MessageToEncode"
                    
                    Margin="18, 0, 18, 0"
                    Height="60"
                    
                    AcceptsReturn="True"
                    TextWrapping="Wrap"
                />
                
                <Label>Mensaje Portador</Label>
                <TextBox
                    Name="MessageCarrier"
                    
                    Margin="18, 0, 18, 0"
                    Height="60"
                    
                    AcceptsReturn="True"
                    TextWrapping="Wrap"
                />

                <Label>Mensaje Codificado</Label>
                <TextBox
                    Name="MessageEncoded"
                    
                    Margin="18, 0, 18, 0"
                    Height="60"
                    
                    IsReadOnly="True"
                    AcceptsReturn="True"
                    TextWrapping="Wrap"
                />

                <Button Content="Codificar" Margin="365,13,18,0" Click="Encode_Click" />
            </StackPanel>
            
            <!-- Pivot de "decodificar" -->
            <StackPanel Name="DecodeGrid" Margin="16, 0, 16, 0" Visibility="Collapsed">
                <Label>Mensaje Codificado</Label>
                <TextBox
                    Name="MessageToDecode"
                    
                    Margin="18, 0, 18, 0"
                    Height="60"
                    
                    AcceptsReturn="True"
                    TextWrapping="Wrap"
                />

                <Label>Mensaje Decodificado</Label>
                <TextBox
                    Name="MessageDecoded"
                    
                    Margin="18, 0, 18, 0"
                    Height="60"
                    
                    IsReadOnly="True"
                    AcceptsReturn="True"
                    TextWrapping="Wrap"
                />
                
                <Button Content="Decodificar" Margin="365,13,18,0" Click="Decode_Click" />
            </StackPanel>
        </Grid>
    </Grid>
</Window>
